/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.designPatterns.mediator;

/**
 *
 * @author minga
 */
public class AmericanSeller {
    Mediator mediator;
    float priceInDollars;
    public AmericanSeller( Mediator mediator, float priceInDollars)
    {
        this.mediator =mediator;
        this.priceInDollars = priceInDollars;
        this.mediator.registerAmericanSeller(this);
    }
    public Boolean isBidAccepted(float bidInDollars)
    {
       if(bidInDollars>=priceInDollars)
       {
           System.out.println("Seller accepts the bid o f"+bidInDollars+"dollars \n");
           return true;
       }
       else
           System.out.println ( " Seller rejects the bid of " + bidInDollars + " dollars nn" );
         return false ;
    }
}
